package com.chen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.dto.RemoveSubjectFromPaperDTO;
import com.chen.entity.ExamPaperConnectSubject;
import com.chen.vo.ESMDTO;
import com.chen.vo.ExamSubjectMiddleVO;

import java.util.List;

/**
 * 试题与试卷连接相关服务
 */
public interface ExamPaperConnectSubjectService extends IService<ExamPaperConnectSubject> {

    /**
     * 试卷id获取试卷信息
     * @param examPaperId
     * @return
     */
    ExamSubjectMiddleVO getSubjectMiddle(Integer examPaperId);

    /**
     * 根据试卷id获取试卷下的所有题目信息
     * @param examPaperId
     * @return
     */
    List<ESMDTO> getESM(Integer examPaperId, String courseName, Integer courseId, Integer gradeId);

    /**
     * 移除试题
     * @param dto
     * @return
     */
    Integer removeSubjectFromPaper(RemoveSubjectFromPaperDTO dto);

}
